import Vue from 'vue'
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import App from './App.vue';
import * as filters from './filters/filter.js';

Vue.use(ElementUI);

new Vue({
  el: '#app',
  render: h => h(App)
});

Vue.config.productionTip = false

new Vue({
  render: h => h(App),
}).$mount('#app')

Object.keys(filters).forEach(key => {
  Vue.filter(key,filters[key])
})

// Vue.filter('dateTime',function (inputTime){
//   return inputTime.slice(0,4) + '-' + inputTime.slice(5,7) + '-' + inputTime.slice(9,11);
// })
